<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>主页</title>
<script type="text/javascript">
	function reinitIframe() {

		var iframe = document.getElementById("frame_content");

		try {

			var bHeight = iframe.contentWindow.document.body.scrollHeight;

			var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;

			var height = Math.max(bHeight, dHeight);

			iframe.height = height;

		} catch (ex) {
		}

	}

	window.setInterval("reinitIframe()", 200);
</script>
</head>
<body>	
	<iframe id="frame_content"
		src="${pageContext.request.contextPath}/blog/show?id=1" scrolling="no"
		frameborder="0" onload="this.height=100" width="100%"></iframe>
</body>
</html>

<jsp:forward page="/blog/show">
	<jsp:param value="1" name="id" />
</jsp:forward>
 
<%
	//response.sendRedirect("db/show");
	//response.sendRedirect("blog/show");
%>

